package com.msk86.ygoroid.newaction.dueldisk.actionimpl;

import com.msk86.ygoroid.newcore.impl.Card;
import com.msk86.ygoroid.newcore.impl.HandCards;
import com.msk86.ygoroid.newop.Operation;

public class AddHandCardAction extends BaseAction {
    public AddHandCardAction(Operation operation) {
        super(operation);
    }

    @Override
    public void execute() {
        HandCards handCards = (HandCards) container;
        Card card = (Card) item;
        handCards.add(card);
        duel.select(card);
    }
}
